< previous page page_80 next page >

Page 80
Each property on the Menu Editor dialog box can be used to set different options for the menu item.
Common Menu Properties
Lets look at the most important properties for this dialog box (see Table 4.3).
Table 4.3 Common Properties for Menu Items.
PropertyDescription
CaptionThis is the menu item you want to display to the user. Putting an ampersand (&) in front of a letter causes the letter that follows to be underlined. In the top-level menu items, an underlined letter for an option can be selected by pressing Alt + the underlined key or by selecting the menu option with the mouse. On the drop-down menu items, an underlined letter for an option is selected by pressing that letter after the drop-down list is displayed.
NameSet this property to the name you want to use to refer to this menu item in your source code. You should preface this name with the letters mnu.
ShortCutThis property displays a list of all the different keystroke combinations you can assign to a menu item.
CheckedSet this property to True if you want to place a check mark next to the menu item.
WindowListSet this property to True when you want to create a list of open windows in a Multiple Document Interface (MDI) application. Youll learn to create MDI applications in Chapter 15, Multiple Document Interface.

EXERCISE
Adding a Menu
1. Bring up your form and press Ctrl+E.
2. Set the Caption property to &File.
3. Set the Name property to mnuFile.
4. Click the Next command button to move to the next menu.
5. Set the Caption property to &Open.

 
< previous page page_80 next page >

If you like this book, buy it!